requirejs.config({
	urlArgs: "current=v0.1.6",
	baseUrl: 'static/scripts',
	paths: {
		ctx: 			'ctx',
		page: 			'../scripts/page',
		zepto: 			'vendor/zepto',
		handlebars: 	'vendor/handlebars.amd',
		JST: 		'template/JST',
		text: 		'vendor/text',
		sui: 		'vendor/sm',
		suiExtend: 	'component/sm.extend',
		wx: 		'http://res.wx.qq.com/open/js/jweixin-1.0.0',
		wxShare: 	'component/wxshare',
		wxConfig: 	'component/config',
		underscore: 'component/underscore',
		iscroll: 	'component/iscroll-lite',
		utils:      'component/utils',
		lazyLoad: 	'component/piclazyload'
	},
	shim: {
		'zepto': 			{ exports: '$'},
		'sui': 				{ deps: ['zepto'] },
		'suiExtend': 		{ deps: ['zepto', 'sui'] },
		'wxConfig': 		{ deps: ['zepto', 'wx'], exports: 'wxConfig'},
		'wxShare': 			{ deps: ['zepto', 'wx', 'wxConfig'], exports: 'wxShare'},
		'utils':   			{ deps: ['zepto', 'underscore'], exports: 'utils'},
		'lazyLoad':   		{ exports: 'lazyLoad'}
	},
	deps: ['zepto', 'sui'],

	callback: function($) {
	  $.init()
	}
});